package jp.sourceforge.akjrcp.util;

import java.io.File;

import org.eclipse.jface.preference.IPreferenceStore;

public class DefaultSetter {


	public static boolean setFilePath(IPreferenceStore store,String key,String[] values){
		boolean ret=false;
		for (int i = 0; i < values.length; i++) {
			if(new File(values[i]).exists()){
				store.setDefault(key,values[i]);
				return true;
			}
		}
		store.setDefault(key,"");
		return ret;
	}
}
